//
//  MoviesCellModel.swift
//  iPhone
//
//  Created by Toj on 5/24/23.
//

import UIKit

class MoviesCellModel: NSObject {
    
    
    private(set) var materials = "https://t12.baidu.com/it/app=106&f=JPEG&fm=30&fmt=auto&u=2087995867%2C205084081?w=312&h=208&s=3623960D540236F45E08E58E0300E086"
    private(set) var number = ""
    private(set) var _cellSize: CGSize = .zero

    init(_ model: MoviesModel) {
        number = String(model.index)
        _cellSize = CGSize(width: .sr_width, height: 66)
    }
}

extension MoviesCellModel: UICollectionViewCellModelProtocol {
  
    /// 注册类
    static var registerCell: UICollectionViewCell.Type {
        return MoviesCollectionViewCell.self
    }
    
    var cellSize: CGSize {
        return _cellSize
    }
}
